home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000122_mike@lorax.com_Fri Feb 4 21:22 MST 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  3KB

  1. Received: from yvax.byu.edu by maine.et.byu.edu; Fri, 4 Feb 1994 21:22:07 -0700
  2. Return-Path: <mike@lorax.com>
  3. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  4.  id <01H8I358PEZK01ABV7@yvax.byu.edu>; Fri, 4 Feb 1994 21:24:11 MST
  5. Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
  6.  id <01H8I353WQ808Y5BW3@yvax.byu.edu>; Fri, 4 Feb 1994 21:24:05 MST
  7. Received: from yvax2.byu.edu by alaska.et.byu.edu; Fri,
  8.  4 Feb 1994 21:23:15 -0700
  9. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  10.  id <01H8I33YLUKW01ABV7@yvax.byu.edu>; Fri, 4 Feb 1994 21:23:10 MST
  11. Received: from netcomsv.netcom.com (uucp5.netcom.com)
  12.  by yvax.byu.edu (PMDF V4.3-3 #4169) id <01H8I33SO64G8Y5BVQ@yvax.byu.edu>; Fri,
  13.  4 Feb 1994 21:23:03 MST
  14. Received: from lorax.com by netcomsv.netcom.com with UUCP (8.6.4/SMI-4.1)
  15.  id UAA09205; Fri, 4 Feb 1994 20:21:44 -0800
  16. Received: by lorax.com (NX5.67d/NX3.0M) id AA16171; Fri, 4 Feb 94 18:40:41 -0800
  17. Received: by NeXT.Mailer (1.100)
  18. Received: by NeXT Mailer (1.100)
  19. Date: Fri, 04 Feb 1994 18:40:41 -0800
  20. From: Mike Ferris <mike@lorax.com>
  21. Subject: Re: Strings and other bad puns...
  22. To: misckit@byu.edu
  23. Reply-To: Mike Ferris <mike@lorax.com>
  24. Message-Id: <9402050240.AA16171@lorax.com>
  25. Content-Transfer-Encoding: 7BIT
  26. Status: RO
  27.  
  28. Hi,
  29.  
  30. Some comments on String classes.  I think that a radically different direction could be beneficial.  I know from my experience with the MOString class that its hard to satisfy everyone with one object.  I just get all the weird methods in there that people want, and people start commenting on how large and inefficient is seems to be getting.
  31.  
  32. I think that there might be a lot to be gained by taking an NXImage style approach to the whole thing.
  33.  
  34. I want a set of "representation" classes that provide back end data storage for string-type data.  Then I want a good string class to wrap around them.  I see representations for all sorts of strings like totally dynamic un-efficient reps, fixed size buffers, and static memory wrappers.
  35.  
  36. The string class would use one of these representations (and should be able to convert its data between reps.
  37.  
  38. To do this right would require an extremely carefully designed api between the representation classes and the string class.
  39.  
  40. There are probably other types of front-end objects that would be useful too.
  41.  
  42. But by doing something like this, users could have a choice when it comes to performance and memory issues and all that.
  43.  
  44. Having spouted all that, I must say that I cannot do this.  Also, whenever there's thought being put into string classes it would be wise to consider Next's eventual entry into this area.  When Next publicizes their string class, will we really want dozens of others to choose from.  I suppose it depends on what Next provides, but before someone spends a huge amount of time writing new string classes, they should think about these issues.
  45.  
  46. ____________________________________________________________
  47. Mike Ferris                 A little bit faster,
  48. mike@lorax.com              A little bit more,
  49. Paradigm Software           A little bit further
  50. (510) 652-2039              than you've gone before.